﻿@using SCMS.Resource
@model SCMS.UI.Models.ExpenseClaim
@{AjaxOptions ajaxOpts = new AjaxOptions
  {
      UpdateTargetId = "expenseclaimDiv",
      LoadingElementId = "loading",
      HttpMethod = "Post",
      Url = Url.Action("SaveEClaim")
  };}
<script src="@Url.Content("~/Scripts/js/jquery-1.7.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="partialViewCard">
    <div class="partialViewCardHeader"><h3>@Resources.ExpenseClaim_LoadExpenseClaim_NewExpenseClaim</h3></div>
    <br />
    @using (Ajax.BeginForm(null, null, ajaxOpts, new { @class = "form" }))
    {
        @Html.ValidationSummary(true)
    
   
        <table width="98%" align="center" cellpadding="0">
            <tr>
                <th align="center" width="33.3%">
                    @Resources.Global_String_RefNo
                </th>
                <th align="center" width="33.3%">
                    @Resources.Global_String_Date
                </th>
                <th align="center" width="33.3%">
                    @Resources.ExpenseClaim_LoadExpenseClaim_ClaimBy
                </th>
            </tr>
            <tr>
                <td align="center">
                    @Html.TextBoxFor(m => m.EntityExpseRqst.RefNumber, new { @readonly = "readonly" })
                    @Html.HiddenFor(m => m.EntityExpseRqst.Id)
                </td>
                <td align="center">
                    @Html.EditorFor(m => m.EntityExpseRqst.RequestDate)
                    @Html.ValidationMessageFor(m => m.EntityExpseRqst.RequestDate)
                </td>
                <td align="center">
                    @Html.DropDownListFor(x => x.ClaimBy, Model.Staffs)
                    @Html.ValidationMessageFor(x => x.ClaimBy, Resources.Global_String_Required)
                </td>
            </tr>
            <tr>
                <th align="center">
                    @Resources.ExpenseClaim_LoadExpenseClaim_ExpenseCurrency
                </th>
                <th align="center">
                    
                </th>
                <th align="center">
                    
                </th>
            </tr>
            <tr>
                <td align="center" valign="top">
                    @Html.DropDownListFor(x => x.EcfCurrencyId, Model.Currencies, Resources.Global_String_PleaseSelect)
                    @Html.ValidationMessageFor(x => x.EcfCurrencyId, Resources.Global_String_Required)
                </td>
                <td align="center">
                    
                </td>
                <td align="right">
                    <input type="submit" class="btn green" value=" @Resources.Global_String_Proceed " />
                </td>
            </tr>
        </table>
        <br />
    }
</div>
